package com.lrkj.back.service.impl;

import java.util.List;

import com.lrkj.back.mapper.TbWenjuanQuestionMapper;
import com.lrkj.back.entity.TbWenjuanQuestion;
import com.lrkj.back.service.TbWenjuanQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service("questionService")
public class TbWenjuanQuestionServiceImpl extends ParentServiceImpl<TbWenjuanQuestion> implements
        TbWenjuanQuestionService {
    @Autowired
    private TbWenjuanQuestionMapper questionMapper;

    @Override
    protected DBInterface<TbWenjuanQuestion> getDao() throws DBException {
        return questionMapper;
    }

    @Override
    public List<TbWenjuanQuestion> selectByWjId(Integer id) throws DBException {
        return questionMapper.selectByWjId(id);
    }

    @Override
    public int deletebywenjuanid(int id) throws DBException {

        return questionMapper.deletebywenjuanid(id);
    }

}
